package com.sxx.mall.product.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sxx.commons.utils.PageUtils;
import com.sxx.mall.product.entity.CategoryEntity;
import com.sxx.mall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author sxx
 * @email 1289139305@qq.com
 * @date 2024-07-09 21:38:28
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryPageWithTree(Map<String, Object> params);

    void removeCategoryByIds(List<Long> ids);

    Long[] findCatelogPath(Long catelogId);


    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLeveL1Category();

    Map<String, List<Catalog2VO>> getCatelog2Json();
}

